import Http  from './http';
import Api  from './api';

class CartService {

  static addCart(data) {
    return Http.request({
      url:Api.Cart.addCart,
      method:'POST',
      data:data
    });
  }

  static getCartList(data) {
    return Http.request({
      url:Api.Cart.getCartList,
      method:'GET',
      data:data
    });
  }

  static delCart(data) {
    return Http.request({
      url:Api.Cart.delCart,
      method:'GET',
      data:data
    });
  }

  static getCartNums(data) {
    return Http.request({
      url:Api.Cart.getCartNums,
      method:'GET',
      data:data
    });
  }

  static getCartListByKeys(data) {
    return Http.request({
      url:Api.Cart.getCartListByKeys,
      method:'GET',
      data:data
    });
  }

}
export default CartService;
